package model

import (
	"time"
)

type UserInfo struct {
	ID             uint64    `gorm:"primaryKey;autoIncrement" json:"id"`
	AddDate        time.Time `gorm:"column:add_date;comment:添加时间" json:"add_date"`
	LastDate       time.Time `gorm:"column:last_date;comment:修改时间" json:"last_date"`
	Avatar         string    `gorm:"column:avatar;size:300;comment:头像" json:"avatar"`
	Catalog        int       `gorm:"column:catalog" json:"catalog"`
	DataScope      int       `gorm:"column:data_scope;comment:数据范围" json:"data_scope"` //数据范围
	LoginSize      int       `gorm:"column:login_size" json:"login_size"`
	Name           string    `gorm:"column:name;size:30" json:"name"`
	Note           string    `gorm:"column:note;size:500" json:"note"`
	Phone          string    `gorm:"column:phone;size:20" json:"phone"`
	State          int       `gorm:"column:state" json:"state"`
	AccountNo      string    `gorm:"column:account_no;size:30" json:"account_no"`
	StoreState     int       `gorm:"column:store_state" json:"store_state"`
	Sex            string    `gorm:"column:sex;size:2" json:"sex"`
	StructureID    int64     `gorm:"column:structure_id" json:"structure_id"`
	TradeAccountID int64     `gorm:"column:trade_account_id" json:"trade_account_id"`
	BeginDate      time.Time `gorm:"column:begin_date" json:"begin_date"`
	Introducer     string    `gorm:"column:introducer;size:200" json:"introducer"`
	Score          int       `gorm:"column:score" json:"score"`
	FaceState      int       `gorm:"column:face_state" json:"face_state"`
	IDCard         string    `gorm:"column:id_card;size:30" json:"id_card"`
	UserType       int       `gorm:"column:user_type" json:"user_type"`
	CardFeeID      int64     `gorm:"column:card_fee_id" json:"card_fee_id"`
	ShopID         int64     `gorm:"column:shop_id" json:"shop_id"`
	SelectStore    int64     `gorm:"column:select_store" json:"select_store"`
}

func (UserInfo) TableName() string {
	return "user_info"
}
